

import javax.swing.*;

import java.awt.*;

class RealtimeCalcFrame extends JFrame
{
    public RealtimeCalcFrame ()
    {
    	super();
    	setTitle ("Realtime PCR calculator");
    	setResizable(true);
    	setBounds(267, 200, 800, 800);
    	setVisible (true);
    	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	centerWindow (this);
    	JPanel panel = new RealtimeCalcPanel();
    	this.add(panel);
    	this.pack();
    	
    }

	private void centerWindow (Window W)
	{
		Toolkit tk = Toolkit.getDefaultToolkit();
		Dimension d = tk.getScreenSize ();
		setLocation ((d.width - W.getWidth())/2, (d.height - W.getHeight())/2);
		
	}
	
}

